
package model;
public class Publisher extends Company
{
    public Publisher()
    {
        super();
    }

    public Publisher(String companyName, String address)
    {
        super(companyName, address);
    }

    public Publisher(Publisher publisher)
    {
        super(publisher);
    }

    @Override
    public boolean equals(Object o)
    {
        if(!(o instanceof Publisher))
            return false;

        Publisher publisher = (Publisher)o;
        if(!getCompanyName().equals(publisher.getCompanyName()))
            return false;
        if(!getAddress().equals(publisher.getAddress()))
            return false;

        return true;
    }
}